<#include "/pages/common/head.html"/>
            
		<div id="sidebar">
			<a href="#" class="visible-phone"><i class="icon icon-th-list"></i> Tables</a>
			<ul style="display: block;">
				<li class="active"><a href="${CPATH!}/userAdmin/userList"><i class="icon icon-tint"></i> <span>用户管理</span></a></li>
				<li><a href="${CPATH!}/project"><i class="icon icon-home"></i> <span>项目管理</span></a></li>
				<li><a href="${CPATH!}/project/createIndex"><i class="icon icon-pencil"></i> <span>创建项目</span></a></li>
				<li><a href="${CPATH!}/modelAdmin"><i class="icon icon-th"></i> <span>模块管理</span></a></li>
				<li><a href="${CPATH!}/createAdmin"><i class="icon icon-th-list"></i> <span>新建模块</span></a></li>

			</ul>
		
		</div>
		
		<div id="style-switcher">
			<i class="icon-arrow-left icon-white"></i>
			<span>Style:</span>
			<a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
			<a href="#blue" style="background-color: #2D2F57;"></a>
			<a href="#red" style="background-color: #673232;"></a>
		</div>
		
		<div id="content">
			<div id="content-header">
				<h1>用户管理</h1>
				<div class="btn-group">
					<button id="avg" class="btn btn-small "><i class="icon-pencil "></i> 增加用户</button>
					
				</div>
			</div>
			<div id="breadcrumb">
				<a data-original-title="Go to Home" href="#" class="tip-bottom"><i class="icon-home"></i> Home</a>
				<a href="#" class="current">用户列表</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						
						
						<div class="widget-box">
							<div class="widget-title">
								<h5>Dynamic table</h5>
							</div>
							
							<#if b?? && b==true>
							<div class="alert alert-success">
								<button class="close" data-dismiss="alert">×</button>
								<strong>Success!</strong>   ${info!}
							</div>
							</#if>
							<#if b?? && b==false>
							<div class="alert alert-error">
								<button class="close" data-dismiss="alert">×</button>
								<strong>Error!</strong>   ${info!}
							</div>
							</#if>
							<div class="widget-content nopadding">
								<table class="table table-bordered data-table">
									<thead>
									<tr>
									<th>登陆邮箱</th>
									<th>名称</th>
									<th>描述</th>
									<th>账号状态</th>
									<th>操作</th>
									</tr>
									</thead>
									<tbody>

								<#list userList as user>
									<tr>
									<td>${user.get("LOGIN_EMAIL")}</td>
									<td>${user.get("NAME")}</td>
									<td>${user.get("DESCIPTION")}</td>
									<td>
									<#if user.get("IS_ENABLE") == "Y">
									有效
									<#else>
									无效
									</#if>
									</td>

									<td class="taskOptions"><a href="${CPATH!}/userAdmin/toEditUser?id=${user.get("ID")}" id="alink" class="tip-top" data-original-title="Update"><i class="icon-ok"></i></a> <a href="${CPATH!}/userAdmin/deleteUser?id=${user.get("ID")}" class="tip-top" onclick="javascript:return p_del()" data-original-title="Delete"><i class="icon-remove"></i></a></td>
									</tr>
								</#list> 


									<tr class="gradeA">
									<td>Presto</td>
									<td>Opera 9.2</td>
									<td>Win 88+ / OSX.3+sdfsdfsdfsdfsdfsdfsdfsdf</td>
									<td class="center">-</td>
									<td class="taskOptions"><a href="kkkk" onclick="javascript:return p_del()" class="tip-top" data-original-title="Update"><i class="icon-ok"></i></a> <a href="${CPATH!}/userAdmin/deleteUser" class="tip-top" data-original-title="Delete"><i class="icon-remove"></i></a></td>
									</tr>
									
									</tbody>
									</table>  
							</div>
						</div>


						</div>
					</div>
				</div>
				
<#include "/pages/common/foot.html"/>
<script type="text/javascript">
	$(document).ready(function(){
	 $("#avg").click(function(){
		 location.href = "${CPATH!}/userAdmin/toAddUser";
	 });
	});
	
	function p_del() {
		var msg = "您真的确定要删除吗？";
		if (confirm(msg)==true){
			return true;
		}else{
			return false;
		}
	}
	
	$("#confirm_delete").click( function() {
		jConfirm('你确定删除该用户吗?', '确定对话框', function(r) {
			jAlert('是否确定: ' + r, '确定内容');
		});
	});
	
	
</script>
